//
//  InviteVC.m
//  BigJoy
//
//  Created by Rowling on 2017/7/12.
//  Copyright © 2017年 Rowling. All rights reserved.
//

#import "InviteVC.h"
#import "InviteDetailVC.h"

@interface InviteVC ()
@property (weak, nonatomic) IBOutlet UILabel *hadInviteLable;

@end

@implementation InviteVC

- (void)viewDidLoad {
    [super viewDidLoad];
    [self creatUI];
}

-(void)creatUI {
    self.title = @"邀请有礼";
    NSMutableAttributedString *string = [[NSMutableAttributedString alloc] initWithString:@"已累计邀请 5 位好友"];
    [string addAttribute:NSForegroundColorAttributeName value:XMColor(245, 70, 70) range:NSMakeRange(6,1)];
    [string addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:17] range:NSMakeRange(6,1)];
    self.hadInviteLable.attributedText = string;
}
// 邀请
- (IBAction)invitButtonClick:(id)sender {
    [XMShareManager shareShow];
}

- (IBAction)ditailButtonClick:(id)sender {
    InviteDetailVC * vc = [InviteDetailVC new];
    [self.navigationController pushViewController:vc animated:YES];
}

@end
